<?php

defined('PATH') or exit();

class Helper_Scripts {

	private static $script = null;

	static public function addScript($_script, $_check = false) {
		static $_loaded = array();
		if ($_check != false) {
			if (in_array($_check, $_loaded))
				return;
			$_loaded[] = $_check;
		}
		self::$script .= $_script;
	}

	static public function addjQuery() {
		static $_loaded;
		if ($_loaded != true) {
			self::addScript('<script type="text/javascript" src="' . PATH . '/media/javascript/jquery.js"></script>');
			$_loaded = true;
		}
	}

	static public function returnScripts() {
		return self::$script;
	}

}